

public class ActionImpl implements IAction{
    //接口的实现类中要重写接口的抽象方法
    @Override
    public void start(){
        System.out.println("开始");
    }
    @Override
    public void end(){
        System.out.println("结束");
    }
    @Override
    public void eat(){
        System.out.println("吃饭");
    }
}
